package com.movie.api.controller;

import com.movie.api.service.FilmIsVipService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/filmvip")
public class FilmVipController {
    @Resource
    private FilmIsVipService filmIsVipService;
    @GetMapping("/isvip/{filmId}")
    public boolean isVip(@PathVariable Integer filmId){
        return filmIsVipService.isVip(filmId);
    }

}
